#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatibility version to use.
export DH_COMPAT=4

build: build-stamp
	ant jar

build-stamp:
	touch build-stamp

configure:
	touch config-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-rm -rf build
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	DESTDIR=$(CURDIR)/debian/nettica-dns/usr ant install
	cp debian/init.d debian/nettica-dns/etc/init.d/nettica
	chmod 755 debian/nettica-dns/etc/init.d/nettica

# Build architecture-independent files here.
binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb
# We have nothing to do by default.

binary: binary-indep 
.PHONY: build clean binary-indep binary install
